package com.ruoyi.psi.base.category.domain;



import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * 产品类别表
 * psi_base_category
 * @author Drj 2021/6/28
 */
public class BaseCategory extends BaseEntity {
    /**
     * 产品类别编号
     */
    @NotNull(message = "产品类别编号不能为空")
    @ApiModelProperty(value = "产品类别编号", required = true)
    private String baseCategoryId;
    /**
     * 父级类别编号
     */
    private String baseCategoryParentId;
    /**
     * 族级类别编号
     */
    private String ancestors;
    /**
     * 产品类别名称
     */
    private String baseCategoryName;

    private List<BaseCategory> children = new ArrayList<BaseCategory>();
    public String getBaseCategoryId() {
        return baseCategoryId;
    }

    public void setBaseCategoryId(String baseCategoryId) {
        this.baseCategoryId = baseCategoryId;
    }

    public String getBaseCategoryParentId() {
        return baseCategoryParentId;
    }

    public void setBaseCategoryParentId(String baseCategoryParentId) {
        this.baseCategoryParentId = baseCategoryParentId;
    }

    public String getBaseCategoryName() {
        return baseCategoryName;
    }

    public void setBaseCategoryName(String baseCategoryName) {
        this.baseCategoryName = baseCategoryName;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public List<BaseCategory> getChildren() {
        return children;
    }

    public void setChildren(List<BaseCategory> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "BaseCategory{" +
                "baseCategoryId='" + baseCategoryId + '\'' +
                ", baseCategoryParentId='" + baseCategoryParentId + '\'' +
                ", ancestors='" + ancestors + '\'' +
                ", baseCategoryName='" + baseCategoryName + '\'' +
                ", children=" + children +
                '}';
    }
}
